﻿<MAppBar App>
    <MAppBarNavIcon @onclick="() => _drawer = !_drawer"></MAppBarNavIcon>
    <MToolbarTitle>i茅台预约助手</MToolbarTitle>
    <MSpacer></MSpacer>
</MAppBar>

<MNavigationDrawer App @bind-Value="_drawer">
    <MList Nav Routable>
        <MListItem Href="/" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-home</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>Home</MListItemTitle>
            </MListItemContent>
        </MListItem>
@*         <MListItem Href="/login" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-plus</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>login</MListItemTitle>
            </MListItemContent>
        </MListItem> *@
        <MListItem Href="/user/index" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-plus</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>用户管理</MListItemTitle>
            </MListItemContent>
        </MListItem>
        <MListItem Href="/product/index" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-list-box</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>预约商品管理</MListItemTitle>
            </MListItemContent>
        </MListItem>
        <MListItem Href="/shop/index" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-list-box</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>店铺管理</MListItemTitle>
            </MListItemContent>
        </MListItem>
        <MListItem Href="/log/index" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-list-box</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>日志管理</MListItemTitle>
            </MListItemContent>
        </MListItem>
        <MListItem Href="/instructions/index" ActiveClass="primary--text">
            <MListItemIcon>
                <MIcon>mdi-list-box</MIcon>
            </MListItemIcon>
            <MListItemContent>
                <MListItemTitle>使用说明</MListItemTitle>
            </MListItemContent>
        </MListItem>
    </MList>
</MNavigationDrawer>

@code {

    private bool? _drawer;

}
